(window.searchguard_bundle_jsonpfunction=window.searchguard_bundle_jsonpfunction||[]).push([[7],{300:function(t,e,a){"use strict";a.d(e,"a",(function(){return s}));var n=a(5);function s(t=""){return"string"!=typeof t?t:t.split(";").reduce(((t,e)=>{const[,a,s]=e.match(/(.+):(.+)/)||[];return a&&(t[Object(n.camelCase)(a.trim())]=s.trim()),t}),{})}},563:function(t,e,a){"use strict";a.r(e),a.d(e,"renderApp",(function(){return c}));a(4);var n=a(11),s=a.n(n),i=a(1);const r={default:{title:"Logged out",subtitle:"Please login with a new token."},missingTenant:{title:"Missing Tenant",subtitle:"No tenant available for this user, please contact your system administrator."},missingRole:{title:"Missing Role",subtitle:"No roles available for this user, please contact your system administrator."},sessionExpired:{title:"Session Expired",subtitle:"Please provide a new token."},authError:{title:"Authentication failed",subtitle:"Please provide a new token."},samlConfigError:{title:"SAML configuration error",subtitle:"Something went wrong while retrieving the SAML configuration, please check your settings."},samlAuthError:{title:"SAML authentication error",subtitle:"The SAML authentication failed. Please contact your administrator."},samlLogoutSuccess:{title:"You have been logged out.",subtitle:""},anonymousAuthError:{title:"Anonymous authentication error",subtitle:"Please make sure that anonymous auth is enabled in Search Guard."},proxycacheAuthError:{title:"Authentication failed",subtitle:"Please login again"},proxycacheLogout:{title:"You have been logged out.",subtitle:""}};var o=a(0);function u({basePath:t="",brandImagePath:e="",showBrandImage:a=!1,backButtonStyle:n={}}){const s=t+"/app/kibana";localStorage.clear(),sessionStorage.clear();let u=null;const l=window.location.search.trim().replace(/^(\?)/,"");l&&l.split("&").map((t=>{const e=t.split("=");"type"===e[0].toLowerCase()&&(u=e[1])}));let{title:c,subtitle:b}=r.default;return r[u]&&(c=r[u].title,b=r[u].subtitle),Object(o.jsx)(i.EuiErrorBoundary,null,Object(o.jsx)(i.EuiSpacer,{size:"xxl"}),Object(o.jsx)(i.EuiFlexGroup,{justifyContent:"spaceAround"},Object(o.jsx)(i.EuiFlexItem,{grow:!1},Object(o.jsx)(i.EuiPanel,null,Object(o.jsx)("div",{style:{margin:"auto",maxWidth:"300px"}},a&&Object(o.jsx)(i.EuiImage,{"data-test-subj":"sg.customError.brandImage",alt:"Brand image",size:"l",url:e.startsWith("/plugins")?t+e:e})),Object(o.jsx)(i.EuiText,{textAlign:"center","data-test-subj":"sg.customError.title"},Object(o.jsx)("h2",null,c)),Object(o.jsx)(i.EuiText,{textAlign:"center","data-test-subj":"sg.customError.subTitle"},Object(o.jsx)("p",null,b)),Object(o.jsx)(i.EuiFlexGroup,{justifyContent:"spaceAround"},Object(o.jsx)(i.EuiFlexItem,null,Object(o.jsx)(i.EuiButton,{fill:!0,href:s,"data-test-subj":"sg.customError.btn",id:"sg.custom.home",style:n},"Back to Kibana Home")))))))}var l=a(300);function c({element:t,basePath:e,config:a}){return s.a.render(Object(o.jsx)(u,{basePath:e,brandImagePath:a.searchguard.login.brandimage,showBrandImage:a.searchguard.login.showbrandimage,backButtonStyle:Object(l.a)(a.searchguard.login.buttonstyle)}),t),()=>s.a.unmountComponentAtNode(t)}}}]);